package com.gitee.mars.studyabroad.constant;

import java.util.ArrayList;
import java.util.Random;

/**
 * @author wq
 * @version 1.0
 * @date 2021/04/21 23:06
 */
public class DefaultAvatar {

    private static ArrayList<String> list = new ArrayList<>();

    static {
        list.add("https://testimg.imlianka.com/image/dgdsd.jpg");
        list.add("http://testimg.imlianka.com/image/cat.jpg.jpg?size=650x500");
        list.add("http://testimg.imlianka.com/image/timg (7).jpg.jpg");
        list.add("http://testimg.imlianka.com/image/timg (2).jpg.jpg");
        list.add("http://testimg.imlianka.com/image/timg (8).jpg.jpg");
        list.add("http://testimg.imlianka.com/image/timg.jpg.jpg");
        list.add("http://testimg.imlianka.com/image/timg.jpg.jpg");
        list.add("http://testimg.imlianka.com/image/timg (3).jpg.jpg");
        list.add("http://testimg.imlianka.com/image/timg (2).jpg.jpg");
        list.add("http://testimg.imlianka.com/image/timg (5).jpg.jpg");
    }


    public static String getUserAvatar() {
        int size = list.size();
        int i = new Random().nextInt(size);
        return list.get(i);
    }
}
